/**
 * Copyright 2009 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * 	http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.xume.raob.extensions.jaxb;

import java.io.File;
import java.io.OutputStream;
import java.io.Writer;

import javax.xml.stream.XMLEventWriter;
import javax.xml.stream.XMLStreamWriter;
import javax.xml.transform.Result;

import org.w3c.dom.Node;
import org.xml.sax.ContentHandler;

/**
 * @author Johan Siebens
 */
public class JaxbExtension {

	public String marshal(Object object) {
		return Jaxb.marshal(object);
	}

	public void marshal(Object object, ContentHandler handler) {
		Jaxb.marshal(object, handler);
	}

	public void marshal(Object object, File output) {
		Jaxb.marshal(object, output);
	}

	public void marshal(Object object, Node node) {
		Jaxb.marshal(object, node);
	}
	
	public void marshal(Object object, OutputStream os) {
		Jaxb.marshal(object, os);
	}
	
	public void marshal(Object object, Result result) {
		Jaxb.marshal(object, result);
	}
	
	public void marshal(Object object, Writer writer) {
		Jaxb.marshal(object, writer);
	}
	
	public void marshal(Object object, XMLEventWriter writer) {
		Jaxb.marshal(object, writer);
	}
	
	public void marshal(Object object, XMLStreamWriter writer) {
		Jaxb.marshal(object, writer);
	}
	
}
